package Boss直聘.立晨远景;

public class 平面块存储水 {
    public static void main(String[] args) {
        int [] input = {0,1,0,2,1,0,1,3,2,1,2,1};
        int x= function(input);
    }

    private static int function(int[] input) {
        int val=0;
        for (int i=1;i<input.length;) {
            int a1= input[i];
            int setup=1;
            while(true){
                if(input[i]>input[i+1]){break;}
                if(input[i]<input[i+1]&&input[i]<input[i-1]){
                    //中间有空隙
                }
            }


        }
        return val;
    }
}
